package wang.app.demo.api.entity;

import lombok.Data;
import wang.app.demo.auth.Role;

import java.util.Set;

/**
 * @Author dj.wang
 * @Date 2020/6/19 22:40
 * @Version V1.0
 */
@Data
public class User
{
    private int id;
    private String username;
    private String password;
    private boolean available = true;
    private String salt;
    private Set<Role> roles;

    public User(int id, String username, String password, Set<Role> roles)
    {
        this.id = id;
        this.username = username;
        this.password = password;
        this.roles = roles;
    }


}
